<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
//如果有定义绑定后台模块则禁用路由规则 
if (\think\Route::getBind('module') == 'admin'){
    return [];
}

Route::group('api/user',function(){
    Route::post('/decrypt','api/user/decrypt');
    Route::post('/login','api/user/login');
    Route::post('/check','api/user/check');
});

Route::group('api/order',function(){
    Route::post('/place','api/order/place');
    Route::post('/cancel','api/order/cancel');
    Route::post('/sign','api/order/sign');
    Route::post('/pay','api/order/pay');
//    Route::post('/notify','api/order/notify');
});
